home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Headers / misckit / MiscSearcher.h < prev    next >
Encoding:
Text File  |  1995-04-12  |  1.4 KB  |  51 lines

  1. //
  2. //    Hugh Ashton - hugh@furuike.twics.com - Feb 95
  3. // Copyright under the terms and conditions of the MiscKit
  4. //                Version 1.1.  All rights reserved.
  5. //
  6. //        This notice may not be removed from this source code.
  7. //
  8. //    This object is included in the MiscKit by permission from the author
  9. //    and its use is governed by the MiscKit license, found in the file
  10. //    "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  11. //    for a list of all applicable permissions and restrictions.
  12. //
  13. // This object allows a search to take place in more than one Text object
  14. // simultaneously.  It also allows searching without having to press the 
  15. // Return key after each search string.
  16. //
  17. // It is inited with the initWithField:anObject andTarget:anotherObject
  18. // method, where anObject is Text (not a TextField) and anotherObject is
  19. // a List of Text objects.
  20. //
  21. // Added dynamic sizing to the original[Start|End] arrays, minor tweaks
  22. //        -- Don Yacktman 4/13/95
  23. //
  24.  
  25.  
  26. #import <appkit/appkit.h>
  27.  
  28. #define MISC_SEARCHER_MAX_TARGETS 10
  29. // 10 seems enough for reasonable use, but you can alter this to more if 
  30. // you need.
  31.  
  32.  
  33. @interface MiscSearcher:Object
  34. {
  35.     id        theTarget;
  36.     id        theSearcher;
  37.     id        theList;
  38.     int        *originalStart;
  39.     int        *originalEnd;
  40.     BOOL    areWeSearching;
  41. }
  42.  
  43. - initWithField:anObject andList:anotherObject;
  44. - forward:sender;
  45. - setTheList:anObject;
  46. - setTheField:anObject;
  47. - theList;
  48. - theField;
  49.  
  50. @end
  51.